package com.tengyun.middleplatform.trade.tradedata.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @Author: likailun
 * @Description:
 * @Date: create in 2022/8/29 9:46 AM
 */
@Data
public class OrderVO implements Serializable {
    private List<Order> orderList;

    /**
     * 艾客用户账号
     */
    private String aikeUsername;
    /**
     * 店铺ID
     */
    private Integer platformId;
    @Data
    public static class Order{
        //订单编号
        private String orderId;
        //电商账号,取uid
        private String buyerNickname;
        //订单创建时间
        private String createTime;
        //付款时间
        private String payTime;
        //订单修改时间
        private String updateTime;
        //订单完成时间
        private String endTime;
        /**
         * 交易状态,Trade_NoPay未付款、Trade_Paid_NoConsigned已支付未发货、Trade_Consigned已发货、Trade_Canceled已取消、Trade_Success已完成
         */
        private String orderStatus;
        //实付金额,精确到2位小数;单位:元
        private String totalPayamount;
        //商家实收金额
        private String receivedPayment;
        //订单总额
        private String totalFee;

        private List<ChildOrder> childOrderList;

    }
    @Data
    public static class ChildOrder{
        //子订单编号（唯一）
        private String childOrderId;
        //商品数字ID
        private String productId;
        //商品标题
        private String title;
        //购买数量
        private int num;
        //商品的最小库存单位Sku的id
        private String skuId;
        //子订单实付金额
        private String totalPayamount ;
        //子订单优惠金额
        private String discountFee;
        //应付金额
        private String totalFee;
        //子订单状态
        private String orderStatus;
        //退款ID
        private Integer refundId;
        //退款状态
        private String refundStatus;
    }
}
